<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/6/21
 * Time: 上午10:38
 */

namespace app\index\model;


use think\Model;

class Level extends Model
{
    protected $table = "t_level";
    public static function getLevelNameById($id){
        $name = "";
        $level = self::find($id);
        if($level){
            $name =  $level["name"];
        }
        return $name;

    }


}